/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import java.util.Collection;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ import java.util.concurrent.ConcurrentHashMap;
/*    */ import java.util.function.Function;
/*    */ import java.util.stream.Collectors;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ym
/*    */ {
/* 18 */   public static Map<String, Integer> g = new ConcurrentHashMap<>();
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public static fj<Double, Double> v(if a, int i) {
/* 25 */     if (i == 1) {
/* 26 */       return fj.v(Double.valueOf(v(a).size() * a.z.z() * a.ia.z()), Double.valueOf(0.0D));
/*    */     }
/* 28 */     List<String> list = z(a);
/* 29 */     fj<Double, Double> fj = new fj<>(Double.valueOf(0.0D), Double.valueOf(0.0D));
/*    */     
/* 31 */     if (i == 0 || i == 2) {
/*    */       
/* 33 */       String str1 = a.ka.z();
/* 34 */       double d = a.ia.z();
/* 35 */       String str2 = String.join("\n", (Iterable)list) + "<->" + str1;
/*    */       
/* 37 */       if (g.containsKey(str2)) {
/* 38 */         fj.z(Double.valueOf(((Integer)g.get(str2)).intValue() * d));
/*    */       } else {
/* 40 */         int j = 0;
/* 41 */         for (String str : list) {
/* 42 */           j = Math.max(j, af.v(str, str1, false));
/*    */         }
/* 44 */         g.put(str2, Integer.valueOf(j));
/* 45 */         fj.z(Double.valueOf(j * d));
/*    */       } 
/*    */     } 
/* 48 */     if (i == 2) {
/* 49 */       fj.v(Double.valueOf(v(a).size() * a.z.z() * a.ia.z()));
/*    */     }
/*    */     
/* 52 */     return fj;
/*    */   }
/*    */ 
/*    */   
/*    */   public static List<String> z(if a) {
/* 57 */     boolean bool = a.r.z();
/* 58 */     List<String> list = (List)v(a).stream().map(o::z).collect(Collectors.toList());
/* 59 */     if (bool) {
/* 60 */       list.replaceAll(a -> a.replace("&", "§"));
/*    */     }
/* 62 */     return list;
/*    */   }
/*    */   
/*    */   public static List<o> v(if a) {
/* 66 */     String str = a.ka.z();
/* 67 */     List list = (List)a.ea.stream().map(bh::c).flatMap(Collection::stream).collect(Collectors.toList());
/*    */     
/* 69 */     double d = a.xa.z();
/*    */     
/* 71 */     List<o> list1 = new ArrayList();
/* 72 */     for (o o : list) {
/* 73 */       if (o instanceof he) {
/* 74 */         list1.addAll(
/* 75 */             (Collection)sk.v(o.v(), (int)d, str)
/* 76 */             .stream()
/* 77 */             .map(he::new)
/* 78 */             .collect(Collectors.toList()));
/*    */         
/*    */         continue;
/*    */       } 
/* 82 */       list1.addAll(
/* 83 */           (Collection)sk.v(o.z(), (int)d, str)
/* 84 */           .stream()
/* 85 */           .map(ah::new)
/* 86 */           .collect(Collectors.toList()));
/*    */     } 
/*    */ 
/*    */     
/* 90 */     return list1;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ym.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */